﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SportsStore.WebUI.Models
{
    public class PagingInfo
    {
        public int TotalItems { get; set; } //数据总数
        public int ItemPerPage { get; set; } //每页数量
        public int CurrentPage { get; set; }//当前页数
        public int TotalPages //总页数
        {
            get { return (int)Math.Ceiling((decimal)TotalItems / ItemPerPage); }
        }

    }
}